abstract class Shape {

    public abstract void draw();
}

class Rect extends Shape{

    @Override
    public void draw() {
        System.out.println("画矩形 ！");
    }
}

class Cycle extends  Shape{

    @Override
    public void draw() {
        System.out.println("○ ！");
    }
}

class Flower extends Shape{

    @Override
    public void draw() {
        System.out.println("❀ ！");
    }
}


public class test1{
    public  static void drawMap(Shape shape){
        shape.draw();
    }
    public static void main(String[] args) {
        Cycle cycle = new Cycle();
        Flower flower = new Flower();
        Rect rect = new Rect();

        drawMap(cycle);
        drawMap(rect);
        drawMap(flower);

        System.out.println("===================");
        Shape[] shapes = {cycle,flower,rect};

        for (Shape shape : shapes){
            shape.draw();
        }
    }
}